package pl.pw.mkmw.pnganimator.image.chunks;

import pl.pw.mkmw.pnganimator.exception.ChunkNotInitializedException;

/**
 *
 * @author Michał
 */
public class IDATChunk extends ChunkImpl{

    public IDATChunk(byte [] chunkData) {
        super();
        setChunkData(chunkData);
        this.chunkType = ChunkType.IDAT;
    }
    
    

    @Override
    protected void generateChunkData() throws ChunkNotInitializedException{
        if(chunkData == null){
            throw new ChunkNotInitializedException(this.getClass().getName()+": nie zainicjowano chunkData\n");
        }
    }
    
}
